package com.wfs.spring.thread.two.t218;

import com.wfs.spring.thread.two.t218.Main;

/**
 * @Auther: wfs
 * @Date: 2019/6/11 20:10
 * @Description:
 */
public class Sub extends Main {
    @Override
    public synchronized void serviceMethod() {
        //super.serviceMethod();
        try {
            System.out.println("init sub 下一步 sleepBegin threadName="+Thread.currentThread().getName()+" time="+System.currentTimeMillis());
            Thread.sleep(5000);
            System.out.println("init sub 下一步 sleepEnd  threadName="+Thread.currentThread().getName()+" time="+System.currentTimeMillis());
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
